<?php

	require_once( '../system/smarty.inc' );
	require_once( '../system/Class_ERROR.php' );
	require_once( '../system/mdao/Class_M_OTHER.php' );
	require_once( '../system/login.inc.php' );
	require_once( '../system/aoki_m.php' );
	require_once( '../system/Class_PWD.php' );
	
	Class_PWD::valid_auth(AOKI_AUTH_COST, $login['staff_auth']);

	if( isset( $err_mes ) ) $smarty->assign('err', $err_mes);
	
	$smarty->assign('menu',   $smarty->fetch('menu.html') );
	$smarty->assign('logout', $smarty->fetch('logout.html') );
	$smarty->assign('footer', $smarty->fetch('footer.html') );
	if ($login['staff_auth'] == "G-9" ) {
		$electrics = Class_M_OTHER::get_electric_array(PLEASE_SELECT_ARR, $login['autoid'] );
	}else {
		$electrics = Class_M_OTHER::get_electric_array(PLEASE_SELECT_ARR);
	}
	$smarty->assign('electrics', $electrics );
	if (isset($_GET["pro"]) && $_GET["pro"] == "sucess") {
		$smarty->display('mcost_tvsp_import_end.html');
	} else {
		$smarty->assign('import', $smarty->fetch('import.html') );
		$smarty->display('mcost_tvsp_import.html');		
	}

?>